package wiki.hitime.stl.daq.enums;


public enum OperateActionEnum {

    // 操作动作，1-新增，2-修改，3-删除
    ADD(1, "新增"),
    UPDATE(2, "修改"),
    DELETE(3, "删除");


    private int status;
    private String msg;

    OperateActionEnum(int status, String msg) {
        this.status = status;
        this.msg = msg;
    }

    public int getStatus() {
        return this.status;
    }

    public String getMsg() {
        return this.msg;
    }

    public static OperateActionEnum valueOf(int status) {
        for (OperateActionEnum enumItem : OperateActionEnum.values()) {
            if (enumItem.getStatus() == status) {
                return enumItem;
            }
        }
        return null;
    }
}
